import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const car: AppRouteModule = {
  path: '/car',
  name: 'Car',
  component: LAYOUT,
  redirect: '/car/list',
  meta: {
    icon: 'ion:aperture-outline',
    title: t('routes.car.car'),
  },

  children: [
    {
      path: 'list',
      name: 'CarList',
      component: () => import('/@/views/car/table/CarList.vue'),
      meta: {
        title: t('routes.car.carList'),
      },
    },
  ],
};

export default car;
